<?php
/*
 * Created on Nov 13, 2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
header("Content-type: application/json");
try{
	$this->model->setProfilePic($_POST["playerid"],$_POST["photo_id"]);

	if(isset($_POST["photos2del"]) && $_POST["photos2del"] != ""){
		$this->model->deletePhotos($_POST["photos2del"]);
	}
}
catch(Exception $ex){
	printf("{\"error\":\"%s\"}",$ex->getMessage());
}
?>
